package org.neuedu.chapter10_0702.demo08;

import java.util.TreeSet;

public class TreeSetDemo01 {
    public static void main(String[] args) {
        TreeSet set = new TreeSet();
        set.add(new Student("tom1",29));
        set.add(new Student("tom2",27));
        set.add(new Student("tom3",23));
        set.add(new Student("tom4",25));
        System.out.println(set);
    }
}
